package cn.xf.service;

import cn.xf.domain.Role;

import java.util.List;

/**
 * @author xiaofu
 * @date 2021-05-18 12:08
 * @email dearaf@163.com
 */
public interface IRoleService {

    List<Role> findAll();

    void save(Role role);

    List<Role> findOtherRole(String id);

    Role findById(String roleId);

    void addPermissionToRole(String roleId, String[] permissionIds);

    List<Role> findAllByPage(Integer page, Integer pageSize);
}
